unit scAddResolution;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, DB, StdCtrls, Buttons, sBitBtn, ExtCtrls, sBevel, DBCtrls,
  sDBMemo;

type
  TfmAddResolution = class(TForm)
    memoResol: TsDBMemo;
    sbvl1: TsBevel;
    sbtbtnOk: TsBitBtn;
    sbtbtnCacel: TsBitBtn;
    dsResol: TDataSource;
    procedure FormClose(Sender: TObject; var Action: TCloseAction);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

implementation

uses dbMyUtils;

{$R *.dfm}

procedure TfmAddResolution.FormClose(Sender: TObject;
  var Action: TCloseAction);
begin
begin
  if Self.ModalResult = mrOK  then
  try
    PostChanges(dsResol.DataSet);
  except
    Action := caNone;
  end;
end;
end;

end.
